<template>
    <div>
        <CommonDialog :title="'确定删除？'" :dialogShow.sync="dialogShow" @makeSure="handleMakeSure" :width="'300'">
            <template #content>
                <div class="del-content">
                    <el-result icon="warning">
                    </el-result>
                    <div class="text">是否删除选中菜品？</div>
                </div>
            </template>
        </CommonDialog>
    </div>
</template>

<script>
export default {
    props: {
        curRow: {
            type: Object,
            default: () => { }
        },
        delShow: {
            type: Boolean,
            default: false
        }
    },
    computed: {
        dialogShow: {
            get() {
                return this.delShow
            },
            set(v) {
                this.$emit('update:delShow', v)
            }
        }
    },
    data() {
        return {

        };
    },
    created() {

    },
    mounted() {

    },

    methods: {
        handleRemove(file, fileList) {
            console.log(file, fileList);
        },
        handlePictureCardPreview(file) {
            this.dialogImageUrl = file.url;
            this.dialogVisible = true;
        },
        handleMakeSure() {
            this.$emit('makeSure')
        }
    },
};
</script>

<style lang="less" scoped>
.del-content {
    display: flex;
    align-items: center;


}

:v-deep {
    .el-result__icon {
        margin-right: 10px;

        svg {
            width: 25px;
            height: 25px;
        }
    }
}
</style>